package com.daJiao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.daJiao.entity.SysUser;
import org.apache.ibatis.annotations.Param;

public interface SysUserMapper extends BaseMapper<SysUser> {

    /**
     * Load user by username user.
     *
     * @param userName the user name
     * @return the user
     */
    SysUser loadUserByUsername(String userName);

    /**
     * 分页查询用户信息
     *
     * @param page
     * @param param
     * @return Page<SysUser>
     */
    Page<SysUser> listPage(Page page, @Param("param") SysUser param);
}
